import React, { Component } from "react";
import styles from "./index.less";

class ListCard extends Component {
  render() {
    const {
      picdata = "",
      leftTxt = "",
      leftTxtDes = "",
      rightTxt = "",
    } = this.props;
    return (
      <div className={styles.root}>
        <div className={styles.left}>
          <img
            src={picdata}
            alt=""
            style={{ width: 48, height: 48, marginRight: 24 }}
          />
          <div>
            <span className={styles.leftTxt}>{leftTxt}</span>
            <div className={styles.leftTxtDes}>{leftTxtDes}</div>
          </div>
        </div>
        <div className={styles.right}>{rightTxt}</div>
      </div>
    );
  }
}

export default ListCard;
